﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZLDC.Common.Estate;
using System.Data;

namespace ZLDC.Topo.BLL.Estate
{
    public class DayReportReplBLL
    {
                public static string p_dayReport_Reply_save(int Id, int reportId, string replycontent)
        {
            string outmsg = "";
            int newid = 0;
            int userId = _Convert.ToInt(_Utility.GetInfoBySession().m_sUserID);
            int deptId = _Convert.ToInt(_Utility.GetInfoBySession().m_sDeptID);
            string deptName = _Utility.GetInfoBySession().m_sDeptName;
            string userName = _Utility.GetInfoBySession().m_sUserName;

            using (_Database db = new _Database("estate"))
            {
                ZLDC.DAL.Estate.DayReportReplyDAL.p_dayReport_Reply_save(Id, reportId, replycontent, userId, userName, deptId, deptName, out outmsg, out newid, db);
            }

            return outmsg;
        }
                public static DataSet SelectDayReportReplyListById(int id)
        {
            using (_Database db = new _Database("estate"))
            {
                return ZLDC.DAL.Estate.DayReportReplyDAL.SelectDayReportReplyListById(id, db);
            }
        }
    }
}
